package icu.d4peng.cloud.user.request;

import com.alibaba.fastjson.JSON;
import icu.d4peng.cloud.common.db.request.SuperRequest;
import icu.d4peng.cloud.user.entity.User;

/**
 * @author d4peng
 * @version 1.0.0
 * @date 2022-01-01 11:14
 * @description ListRequest:用户列表请求
 */
public class ListRequest extends SuperRequest<User> {
    /**
     * 用户名
     */
    private String username;
    /**
     * 昵称
     */
    private String nickName;
    /**
     * 手机号
     */
    private String phone;

    public String getUsername() {
        return username;
    }

    public ListRequest setUsername(String username) {
        this.username = username;
        return this;
    }

    public String getNickName() {
        return nickName;
    }

    public ListRequest setNickName(String nickName) {
        this.nickName = nickName;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public ListRequest setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
